/**
 * @author pike
 * Basic functions for PHP/Ajax buttons
 */
<!-- hide script from old browsers
function reloadPHP(id,str)
	{		
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
		    document.getElementById("change").innerHTML=xmlhttp.responseText;
		    }
		  }
		if(id==1)
		{
			if(document.F1.lang.checked)
			{	lang="ja";}
			else
			{	lang="en";}
			xmlhttp.open("GET","dynamic.php?func="+id+"&state="+str+"&lang="+lang,true);
		}
		else if (id==2)
		{
			if(document.F1.lang.checked)
			{	lang="ja";}
			else
			{	lang="en";}
			xmlhttp.open("GET","dynamic.php?func=2&id="+str+"&status="+document.F1.users.value+"&lang="+lang,true);
		}
		else if (id==5)
		{
			document.location.href = "dynamic.php?func=5&id="+str;
		}
		else if (id==6)
		{
			xmlhttp.open("GET","dynamic.php?func=6&id="+str,true);
		}
		else if (id=="client")
		{
			document.location.href ="dynamic.php?func=client";
		}
		else
		{
			xmlhttp.open("GET","dynamic.php?func=+"+id+"&id="+str,true);
		}
		xmlhttp.send();
	}
// end hiding script from old browsers 
-->	